package com.soup.lab.third.lock;

/**
 * @ClassName KeyLock
 * @Description:
 * @Author gaoxiang
 * @Date 2020/8/14 10:33
 * @Version V1.0
 *
 * 与Lock中的方法
 *
 **/
public interface KeyLock {
    boolean tryLock(String key);
    boolean tryLock(String key, long timeout, long retry);
    boolean lock(String key);
    boolean unlock(String key);

}
